package com.mewp.permissions.system.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mewp.permissions.model.po.SysLoginLog;
import com.mewp.permissions.model.vo.SysLoginLogQueryVO;
import com.mewp.permissions.system.mapper.SysLoginLogMapper;
import com.mewp.permissions.system.service.SysLoginLogService;
import org.springframework.stereotype.Service;

/**
 * @author mewp
 * @version 1.0
 * @date 2023/8/5 22:02
 */
@Service
public class SysLoginLogServiceImpl extends ServiceImpl<SysLoginLogMapper, SysLoginLog> implements SysLoginLogService {
    @Override
    public Page<SysLoginLog> selectPage(Long page, Long size, SysLoginLogQueryVO sysLoginLogQueryVo) {
        Page<SysLoginLog> loginLogPage = new Page<>(page, size);
        return baseMapper.selectPageByCondition(loginLogPage, sysLoginLogQueryVo);
    }
}
